<# # It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description: Script is designed To change the measurement system # Configuration Type - USER # Arguments - The value needs to be hardcoded inside the script # Refer: https://techcommunity.microsoft.com/t5/ask-the-performance-team/how-to-change-regional-settings-for-all-users-on-a-computer/ba-p/375086 # Note: If the registry changes but is not reflected, the customer should check with Windows support for assistance. #> # A value of 0 indicates that the user has selected the Metric system (e.g., meters, liters). # A value of 1 indicates that the user has chosen the U.S. customary system (e.g., feet, gallons). # Define the registry path and value $registryPath = "HKCU:\Control Panel\International" $valueName = "iMeasure" $valueData = 0 # Change to 1 if needed # Check if the registry path exists if (-not (Test-Path $registryPath)) { # Create the registry path if it doesn't exist New-Item -Path $registryPath -Force } # Set the registry value Set-ItemProperty -Path $registryPath -Name $valueName -Value $valueData Write-Host "Measurement system was changed successfully"